Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed Option return for read_line #48

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

mrghosti3
Copy link
Contributor

For helper_functions::read_line the Option return is not needed as the function always returns Some(..) just wraps either Ok(..) or Err(..).

With this change the functions where helper_functions::read_line is called have simpler unwrapping.

For `helper_functions::read_line` the Option return is not needed as the
function always returns `Some(..)` just wraps either `Ok(..)` or `Err(..)`.

With this change the functions where `helper_functions::read_line` is
called have simpler unwrapping.
@brettfo brettfo closed this Sep 5, 2023
@brettfo brettfo reopened this Sep 5, 2023
@brettfo brettfo merged commit 98a10c2 into ixmilia:main Sep 5, 2023
7 checks passed
@mrghosti3 mrghosti3 deleted the unneeded-option branch September 5, 2023 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants